
<title>主页</title>

<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
  </div>
</div>

<div class="layui-fluid">
    <div class="layui-col-sm12" style="margin-top:10px;">
        <div class="layui-card">
            <div class="layui-card-header">
                <span id="mall_yes"></span>
            </div>
        </div>
    </div>
</div>

<script>
    layui.use(['admin', 'form'], function(){
        $ = layui.$
            ,admin = layui.admin;
        // 获取分类数据
        admin.req({
            url: layui.setter.api+'index/data'
            ,method:'get'
            ,success: function(data){
                if(data.code == 0){
                    var info = data.data;
                    if(info.num == 0){
                      $("#mall_yes").html('王佳佳今天没写作业呢');
                    }else{
                        $("#mall_yes").html('王佳佳已经完成数学作业');
                    }

                }

            }
        });
    })
</script>